<?php
include "../include/config.php";
?>

<?php 
#   check session
if( !isset($_SESSION["Login"]["id"]) || !isset($_SESSION["Login"]["group_id"]) || $_SESSION["Login"]["group_id"]!=1)  
{
?>
<form action="login.php" method="post">
<table>
    <tr>
        <td colspan="2"><h3>Login</h3></td>
    </tr>
    <tr>
        <td>User name</td>
        <td><input name="username" type="text"/></td>
    </tr>
    <tr>
        <td>Password</td>
        <td><input name="password" type="password"/></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="login"/></td>
    </tr>
</table>
</form>
<?php 
}?>